{extend name="base" /}
{block name="css"}
{/block}
{block name="js"}
<script src="__ADMIN__/shopstyles/styles.js?v={$v}" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="__STATIC__/plugins/lazyload/jquery.lazyload.min.js"></script>
{/block}
{block name="main"}
<div class="layui-tab layui-tab-brief" lay-filter="msgTab">
   <ul class="layui-tab-title">
   {volist name="$cats" id='vo'}
      <li {if condition="$key==0"}class="layui-this"{/if}  onclick="listQuery('{$vo['styleSys']}',1)">{$vo['styleSys']}</li>
   {/volist}
   </ul>
   <div class="layui-tab-content" style="padding: 10px 0;">
      {volist name="$cats" id='vo'}
         <div id="style_{$vo['styleSys']}" class="layui-tab-item {if condition="$key==0"}layui-show{/if}">
         </div>
      {/volist}
    </div>
</div>
<script id="tblist" type="text/html">
    {{# var dcat=d['cat'];var dcats=d['cats']; var dsys=d['sys'];}}
    <div class='style-txt' style="margin-left:10px;">分类：
        <select  style="height:24px;" onchange="listQuery('{{dsys}}',1,this)">
            <option class="ipt" value="-1">全部分类</option>
            {{# for(var j = 0; j < dcats.length; j++){ }}
            <option class="ipt" value="{{dcats[j]['dataVal']}}" {{# if(dcat == dcats[j]['dataVal']){ }}selected{{# } }}>{{dcats[j]['dataName']}}</option>
            {{#}}}
        </select>
    </div>
{{# var dcat=d['cats'];var dl = d['list']['data'];for(var i = 0; i < dl.length; i++){ }}
<div class='style-box'>
   <div class='style-img'>
     <a href='#'>
      <img data-original='__ROOT__/wstmart/{{d["sys"]}}/view/{{dl[i]["styleImgPath"]}}/{{dl[i]["screenshot"]}}' class='gImg' />
     </a>
   </div>
   <div class='style-txt'>标题：{{dl[i]['styleName']}}</div>
   <div class='style-txt'>分类：
       <select name="shopStylesCat" id="shopStylesCat" style="height:24px;" onchange="changeStyleCat(this,{{dl[i]['id']}})">
           {{# for(var j = 0; j < dcat.length; j++){ }}
                <option class="ipt" value="{{dcat[j]['dataVal']}}" {{# if(dl[i]['styleCat'] == dcat[j]['dataVal']){ }}selected{{# } }}>{{dcat[j]['dataName']}}</option>
           {{#}}}
       </select>
   </div>
   <div class='style-txt' style="margin-top:30px;">
       <input type="radio" name="isShow{{dl[i]['id']}}" value="1" {{#if(dl[i]['isShow']==1){}}checked{{#}}} id="isShow{{dl[i]['id']}}-1" onchange="changeStyle(this,{{dl[i]['id']}})"/><label for="isShow{{dl[i]['id']}}-1">显示</label>
       <input type="radio" name="isShow{{dl[i]['id']}}" value="0" {{#if(dl[i]['isShow']==0){}}checked{{#}}} id="isShow{{dl[i]['id']}}-2" onchange="changeStyle(this,{{dl[i]['id']}})"/><label for="isShow{{dl[i]['id']}}-2">隐藏</label>
   </div>
</div>
{{#}}}
</script>
<div style="position:fixed;bottom:10px;width:100%;height:50px;">
    <div id='pager' align="center" style='padding:5px 0 5px 0'>&nbsp;</div>
</div>
{/block}